﻿using KingTools.SocketHelper.Model;

namespace KingTools.SocketHelper
{
    /// <summary>
    ///     协议发送帮助类
    /// </summary>
    public class SendUtils
    {
        private readonly ProtocolBusinessVO businessVO;
        private readonly ProtocolLoginVO loginVO;
        private readonly ISend send = new SendImpl();

        public SendUtils(ProtocolLoginVO loginVO, ProtocolBusinessVO businessVO)
        {
            this.loginVO = loginVO;
            this.businessVO = businessVO;
        }

        public byte[] SendVerifyProtocol()
        {
            return send.SendVerifyProtocol();
        }

        public byte[] SendLoginProtocol()
        {
            return send.SendLoginProtocol(loginVO);
        }

        public byte[] SendBusinessProtocol()
        {
            return send.SendBusinessProtocol(businessVO);
        }
    }
}